<!DOCTYPE html>
<html><head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta property="qc:admins" content="465267610762567726375">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">  
	<title>CSS 教程 | 菜鸟教程</title>

  <link rel="dns-prefetch" href="http://s.w.org/">
<link rel="canonical" href="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/css-tutorial_002.html">
<meta name="keywords" content="CSS 教程,css,css3">
<meta name="description" content="CSS  教程   通过使用 CSS 我们可以大大提升网页开发的工作效率！ 在我们的 CSS 教程中，您会学到如何使用 CSS 同时控制多重网页的样式和布局。 各章节实例 本 CSS 教程包含了数百个CSS在线实例 通过本站的在线编辑器，你可以在线编辑CSS,并且可以在线查看修改后的效果。    CSS 实例  [mycode3 type='css'] body {     background-color:#d0e..">
		
	<link rel="shortcut icon" href="http://cdn.static.runoob.com/images/favicon.ico" mce_href="//cdn.static.runoob.com/images/favicon.ico" type="image/x-icon">
	<link rel="stylesheet" href="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/style.css" type="text/css" media="all">	
	<link rel="stylesheet" href="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/font-awesome.css" media="all">	
  <script src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/hm.js"></script><script src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/ca-pub-5751451760833794.js"></script><script src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/jquery.js"></script>
  <!--[if lt IE 9]>
     <script src="https://cdn.bootcss.com/html5shiv/r29/html5.min.js"></script>
  <![endif]-->
  <link rel="apple-touch-icon" href="http://static.runoob.com/images/icon/mobile-icon.png">
  <meta name="apple-mobile-web-app-title" content="菜鸟教程">
<link href="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/prettify.css" type="text/css" rel="stylesheet"></head>
<body>
<!--  头部 -->
<div class="container logo-search">

  <div class="col search row-search-mobile">
    <form action="index.php">
      <input class="placeholder" value="搜索……" name="s" autocomplete="off">
    </form>
  </div>

  <div class="row">
    <div class="col logo">
      <h1><a href="http://www.runoob.com/">菜鸟教程 -- 学的不仅是技术，更是梦想！</a></h1>
    </div>
        <div class="col right-list"> 
    <button class="btn btn-responsive-nav btn-inverse" data-toggle="collapse" data-target=".nav-main-collapse" id="pull" style=""> <i class="fa fa-navicon"></i> </button>
    </div>
        <div class="col search search-desktop last">
      <form action="//www.runoob.com/" target="_blank">
        <input class="placeholder" id="s" name="s" value="jquery prop" autocomplete="off">
      </form>
    </div>
  </div>
</div>


<!-- 导航栏 -->
<!-- 导航栏 -->
<div class="container navigation">
	<div class="row">
		<div class="col nav">
			<ul class="pc-nav">
				<li><a href="http://www.runoob.com/">首页</a></li>
				<li><a href="http://www.runoob.com/html/html-tutorial.html">HTML</a></li>
				<li><a href="http://www.runoob.com/css/css-tutorial.html">CSS</a></li>
				<li><a href="http://www.runoob.com/js/js-tutorial.html">JavaScript</a></li>
				<li><a href="http://www.runoob.com/jquery/jquery-tutorial.html">jQuery</a></li>
				<li><a href="http://www.runoob.com/bootstrap/bootstrap-tutorial.html">Bootstrap</a></li>
				<li><a href="http://www.runoob.com/sql/sql-tutorial.html">SQL</a></li>
				<li><a href="http://www.runoob.com/mysql/mysql-tutorial.html">MySQL</a></li>
				<li><a href="http://www.runoob.com/php/php-tutorial.html">PHP</a></li>
				<li><a href="http://www.runoob.com/python/python-tutorial.html">Python</a></li>
				<li><a href="http://www.runoob.com/cprogramming/c-tutorial.html">C</a></li>
				<li><a href="http://www.runoob.com/cplusplus/cpp-tutorial.html">C++</a></li>
				<li><a href="http://www.runoob.com/csharp/csharp-tutorial.html">C#</a></li>
				<li><a href="http://www.runoob.com/java/java-tutorial.html">Java</a></li>
				<li><a href="http://www.runoob.com/ruby/ruby-tutorial.html">Ruby</a></li>
				
				<li><a href="http://www.runoob.com/sitemap">更多……</a></li>
				<!--
				<li><a href="javascript:;" class="runoob-pop">登录</a></li>
				-->
      		</ul>
			<ul class="mobile-nav">
				<li><a href="http://www.runoob.com/">首页</a></li>
				<li><a href="http://www.runoob.com/html/html-tutorial.html">HTML</a></li>
				<li><a href="http://www.runoob.com/css/css-tutorial.html">CSS</a></li>
				<li><a href="http://www.runoob.com/js/js-tutorial.html">JavaScript</a></li>
				<a href="javascript:void(0)" class="search-reveal">Search</a> 
			</ul>
			
		</div>
	</div>
</div><!--  内容  -->
<div class="container main">
	<!-- 中间 -->
	<div class="row">
	
<div class="col left-column">
	<div class="tab">CSS 教程</div>
	<div class="sidebar-box gallery-list">
		<div class="design" id="leftcolumn">
						<a style="background-color: rgb(150, 185, 125); font-weight: bold; color: rgb(255, 255, 255);" target="_top" title="CSS 教程" href="http://www.runoob.com/css/css-tutorial.html">
			CSS 教程			</a>
						<a target="_top" title="CSS 简介" href="http://www.runoob.com/css/css-intro.html">
			CSS 简介			</a>
						<a target="_top" title="CSS 语法" href="http://www.runoob.com/css/css-syntax.html">
			CSS 语法			</a>
						<a target="_top" title="CSS Id 和 Class选择器" href="http://www.runoob.com/css/css-id-class.html">
			CSS Id 和 Class选择器			</a>
						<a target="_top" title="CSS 创建" href="http://www.runoob.com/css/css-howto.html">
			CSS 创建			</a>
						<a target="_top" title="CSS Backgrounds(背景)" href="http://www.runoob.com/css/css-background.html">
			CSS Backgrounds(背景)			</a>
						<a target="_top" title="CSS Text(文本)" href="http://www.runoob.com/css/css-text.html">
			CSS Text(文本)			</a>
						<a target="_top" title="CSS Fonts(字体)" href="http://www.runoob.com/css/css-font.html">
			CSS Fonts(字体)			</a>
						<a target="_top" title="CSS 链接(link)" href="http://www.runoob.com/css/css-link.html">
			CSS 链接(link)			</a>
						<a target="_top" title="CSS 列表样式(ul)" href="http://www.runoob.com/css/css-list.html">
			CSS 列表样式(ul)			</a>
						<a target="_top" title="CSS Table(表格)" href="http://www.runoob.com/css/css-table.html">
			CSS Table(表格)			</a>
						<a target="_top" title="CSS 盒子模型" href="http://www.runoob.com/css/css-boxmodel.html">
			CSS 盒子模型			</a>
						<a target="_top" title="CSS Border(边框)" href="http://www.runoob.com/css/css-border.html">
			CSS Border(边框)			</a>
						<a target="_top" title="CSS 轮廓（outline）属性" href="http://www.runoob.com/css/css-outline.html">
			CSS 轮廓（outline）属性			</a>
						<a target="_top" title="CSS Margin(外边距)" href="http://www.runoob.com/css/css-margin.html">
			CSS Margin(外边距)			</a>
						<a target="_top" title="CSS Padding（填充）" href="http://www.runoob.com/css/css-padding.html">
			CSS Padding（填充）			</a>
						<a target="_top" title="CSS 分组和嵌套" href="http://www.runoob.com/css/css-grouping-nesting.html">
			CSS 分组和嵌套			</a>
						<a target="_top" title="CSS 尺寸 (Dimension)" href="http://www.runoob.com/css/css-dimension.html">
			CSS 尺寸 (Dimension)			</a>
						<a target="_top" title="CSS Display(显示) 与 Visibility（可见性）" href="http://www.runoob.com/css/css-display-visibility.html">
			CSS Display(显示)			</a>
						<a target="_top" title="CSS Positioning(定位)" href="http://www.runoob.com/css/css-positioning.html">
			CSS Positioning(定位)			</a>
						<a target="_top" title="CSS Float（浮动）" href="http://www.runoob.com/css/css-float.html">
			CSS Float（浮动）			</a>
						<a target="_top" title="CSS 水平对齐(Horizontal Align)" href="http://www.runoob.com/css/css-align.html">
			CSS Align( 对齐)			</a>
			<a target="_top" href="http://www.runoob.com/css/css-combinators.html">
	CSS 组合选择符	</a>			<a target="_top" title="CSS 伪类" href="http://www.runoob.com/css/css-pseudo-classes.html">
			CSS 伪类			</a>
						<a target="_top" title="CSS 伪元素" href="http://www.runoob.com/css/css-pseudo-elements.html">
			CSS 伪元素			</a>
						<a target="_top" title="CSS 导航栏" href="http://www.runoob.com/css/css-navbar.html">
			CSS 导航栏			</a>
			<a target="_top" title="CSS 下拉菜单" href="http://www.runoob.com/css/css-dropdowns.html"> CSS 下拉菜单 </a>			<a target="_top" title="CSS 图片廊" href="http://www.runoob.com/css/css-image-gallery.html">
			CSS 图片廊			</a>
						<a target="_top" title="CSS 图像透明/不透明" href="http://www.runoob.com/css/css-image-transparency.html">
			CSS 图像透明/不透明			</a>
						<a target="_top" title="CSS 图像拼合技术" href="http://www.runoob.com/css/css-image-sprites.html">
			CSS 图像拼合技术			</a>
						<a target="_top" title="CSS 媒体类型" href="http://www.runoob.com/css/css-mediatypes.html">
			CSS 媒体类型			</a>
						<a target="_top" title="CSS 属性选择器" href="http://www.runoob.com/css/css-attribute-selectors.html">
			CSS 属性选择器			</a>
						<a target="_top" title="CSS 总结" href="http://www.runoob.com/css/css-summary.html">
			CSS 总结			</a>
						<a target="_top" title="CSS 实例" href="http://www.runoob.com/css/css-examples.html">
			CSS 实例			</a>
			<br><h2 class="left"><span class="left_h2">CSS3</span> 教程</h2>
<a target="_top" href="http://www.runoob.com/css3/css3-tutorial.html">
	CSS3 教程	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-intro.html">
	CSS3 简介	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-borders.html">
	CSS3 边框（Borders）	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-backgrounds.html">
	CSS3 背景	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-gradients.html">
	CSS3 渐变	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-text-effects.html">
	CSS3 文本效果	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-fonts.html">
	CSS3 字体	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-2dtransforms.html">
	CSS3 2D 转换	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-3dtransforms.html">
	CSS3 3D 转换	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-transitions.html">
	CSS3 过渡	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-animations.html">
	CSS3 动画	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-multiple-columns.html">
	CSS3 多列	</a>
		<a target="_top" href="http://www.runoob.com/css3/css3-user-interface.html">
	CSS3 用户界面	</a>
<br>
<h2 class="left"><span class="left_h2">CSS</span> 响应式设计</h2>
<a target="_top" href="http://www.runoob.com/css/css-rwd-viewport.html">Viewport</a>
<a target="_top" href="http://www.runoob.com/css/css-rwd-grid.html"> 网格视图</a>
<a target="_top" href="http://www.runoob.com/css/css-rwd-mediaqueries.html">媒体查询</a>
<a target="_top" href="http://www.runoob.com/css/css-rwd-images.html">图片</a>
<a target="_top" href="http://www.runoob.com/css/css-rwd-videos.html">视频(Video)</a>
<a target="_top" href="http://www.runoob.com/css/css-rwd-frameworks.html">框架</a>
<br>
<h2 class="left"><span class="left_h2">CSS</span> 参考手册</h2>
<a target="_top" href="http://www.runoob.com/cssref/css-reference.html">CSS 参考手册</a>
<a target="_top" href="http://www.runoob.com/cssref/css-selectors.html">CSS 选择器</a>
<a target="_top" href="http://www.runoob.com/cssref/css-ref-aural.html">CSS 语音参考</a>
<a target="_top" href="http://www.runoob.com/cssref/css-websafe-fonts.html">CSS Web安全字体</a>
<a target="_top" title="CSS 动画" href="http://www.runoob.com/cssref/css-animatable.html"> CSS 动画 </a>
<a target="_top" href="http://www.runoob.com/cssref/css-units.html">CSS 单位</a>
<a target="_top" href="http://www.runoob.com/cssref/css-colors.html">CSS 颜色</a>
<a target="_top" href="http://www.runoob.com/cssref/css-colors-legal.html">CSS 颜色值</a>
<a target="_top" href="http://www.runoob.com/cssref/css-colornames.html">CSS 颜色名</a>
<a target="_top" href="http://www.runoob.com/cssref/css-colorsfull.html">CSS 十六进制颜色</a>	
		</div>
	</div>	
</div>	<div class="col middle-column">
		
	
	<div class="article">
			<div class="article-heading-ad">
		<script async="" src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/adsbygoogle.js"></script>
		<!-- 移动版 自动调整 -->
		<ins data-adsbygoogle-status="done" class="adsbygoogle" style="display:inline-block;min-width:300px;max-width:970px;width:100%;height:90px" data-ad-client="ca-pub-5751451760833794" data-ad-slot="1691338467" data-ad-format="horizontal"><ins id="aswift_0_expand" style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:742px;background-color:transparent"><ins id="aswift_0_anchor" style="display:block;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:742px;background-color:transparent"><iframe marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;" frameborder="0" height="90" width="742"></iframe></ins></ins></ins>
		<script>
		(adsbygoogle = window.adsbygoogle || []).push({});
		</script>
		</div>
		<div class="previous-next-links">
			<div style="display: none;" class="previous-design-link"> </div>
			<div class="next-design-link"><a title="CSS 简介" href="http://www.runoob.com/css/css-intro.html" rel="next">CSS 简介</a> →</div>
		</div>
		<div class="article-body">
		
			<div class="article-intro" id="content">
			
			<h1>CSS <span class="color_h1"> 教程</span>
</h1>

<p>通过使用 CSS 我们可以大大提升网页开发的工作效率！</p>
<p>在我们的 CSS 教程中，您会学到如何使用 CSS 同时控制多重网页的样式和布局。</p>
<h2 class="tutheader">各章节实例</h2>
<p>本 CSS 教程包含了数百个CSS在线实例</p>
<p>通过本站的在线编辑器，你可以在线编辑CSS,并且可以在线查看修改后的效果。</p>


<div class="example">
<h2 class="example_head">CSS 实例</h2>
<div class="example_code">
<div class="hl-main"><span class="hl-identifier">body</span><span class="hl-code">
</span><span class="hl-brackets">{</span><span class="hl-code">
    </span><span class="hl-reserved">background-color:</span><span class="hl-var">#d0e4fe</span><span class="hl-reserved"></span><span class="hl-code">;
</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-identifier">h1</span><span class="hl-code">
</span><span class="hl-brackets">{</span><span class="hl-code">
    </span><span class="hl-reserved">color:</span><span class="hl-code">orange</span><span class="hl-reserved"></span><span class="hl-code">;
    </span><span class="hl-reserved">text-align:</span><span class="hl-string">center</span><span class="hl-reserved"></span><span class="hl-code">;
</span><span class="hl-brackets">}</span><span class="hl-code">
</span><span class="hl-identifier">p</span><span class="hl-code">
</span><span class="hl-brackets">{</span><span class="hl-code">
    </span><span class="hl-reserved">font-family:</span><span class="hl-code">"</span><span class="hl-code">Times</span><span class="hl-code"> </span><span class="hl-code">New</span><span class="hl-code"> </span><span class="hl-code">Roman</span><span class="hl-code">"</span><span class="hl-reserved"></span><span class="hl-code">;
    </span><span class="hl-reserved">font-size:</span><span class="hl-number">20</span><span class="hl-string">px</span><span class="hl-reserved"></span><span class="hl-code">;
</span><span class="hl-brackets">}</span></div>
</div>
<br><a target="_blank" href="http://www.runoob.com/try/try.php?filename=trycss_default" class="tryitbtn">尝试一下 »</a>
</div>
<p><b>点击 "尝试一下" 按钮查看css是如何工作的。</b></p>

<h2 class="tutheader">CSS 实例</h2>
<p>css 在线150个实例，通过本站编辑器，你可以学习在线查看修改后css的运行效果。</p>
<p><a href="http://www.runoob.com/css/css-examples.html" target="_blank">尝试一下!</a></p>


<h2 class="tutheader">CSS 参考手册</h2>
<p>在W3CSchool中你可以找到更完整的CSS属性、选择器的语法，浏览器支持等资料.</p>
<p><a href="http://www.runoob.com/cssref/css-reference.html" target="_blank">CSS 属性</a> </p>
<p><a href="http://www.runoob.com/cssref/css-selectors.html" target="_blank">CSS 选择器参考手册</a></p>
<p><a href="http://www.runoob.com/cssref/css-ref-aural.html" target="_blank">CSS 声音参考手册</a></p>
<p><a href="http://www.runoob.com/cssref/css-units.html" target="_blank">CSS 单位</a></p>
<p><a href="http://www.runoob.com/cssref/css-colors.html" target="_blank">CSS 颜色参考手册</a></p>			
			
			</div>
		</div>
		
		<div class="previous-next-links">
			<div style="display: none;" class="previous-design-link"> </div>
			<div class="next-design-link"><a title="CSS 简介" href="http://www.runoob.com/css/css-intro.html" rel="next">CSS 简介</a> →</div>
		</div>
		<!-- 笔记列表 -->
		


<div id="respond" class="no_webshot">
		<div class="comment-signarea" style="">
		<h3 class="text-muted"><i class="fa fa-info-circle" aria-hidden="true"></i> 分享笔记前必须<a href="javascript:;" class="runoob-pop">登录</a>！</h3>
		<p><a href="http://www.runoob.com/w3cnote/runoob-user-test-intro.html#invite" target="_blank">注册邀请码获取方式</a></p>
	</div>
		
	<form action="http://www.runoob.com/wp-content/themes/runoob/option/addnote.php" method="post" id="commentform" style="display:none;"><div id="comment-status"></div>
		<div class="comt">
			<div class="comt-title">
				<img src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/a.jpg" class="avatar avatar-100" height="100" width="100">				<p><a id="cancel-comment-reply-link" href="javascript:;">取消</a></p>
			</div>
			<div class="comt-box">
			<div class="mded editMode" id="mded"><div class="mded-toolbar" id="wmd-button-bar-demo"><ul class="wmd-button-row" id="wmd-button-row-demo"><li title="加粗 &lt;strong&gt; Ctrl+B" id="wmd-bold-button-demo" style="left: 0px;" class="wmd-button wmd-bold-button"><span style="background-position: 0px 0px;"></span></li><li title="斜体 &lt;em&gt; Ctrl+I" id="wmd-italic-button-demo" style="left: 25px;" class="wmd-button wmd-italic-button"><span style="background-position: -20px 0px;"></span></li><li id="wmd-spacer1-demo" class="wmd-spacer wmd-spacer1"></li><li title="链接 &lt;a&gt; Ctrl+L" id="wmd-link-button-demo" style="left: 75px;" class="wmd-button wmd-link-button"><span style="background-position: -40px 0px;"></span></li><li title="引用 &lt;blockquote&gt; Ctrl+Q" id="wmd-quote-button-demo" style="left: 100px;" class="wmd-button wmd-quote-button"><span style="background-position: -60px 0px;"></span></li><li title="代码 &lt;pre&gt;&lt;code&gt; Ctrl+K" id="wmd-code-button-demo" style="left: 125px;" class="wmd-button wmd-code-button"><span style="background-position: -80px 0px;"></span></li><li title="图片 &lt;img&gt; Ctrl+G" id="wmd-image-button-demo" style="left: 150px;" class="wmd-button wmd-image-button"><span style="background-position: -100px 0px;"></span></li><li id="wmd-spacer2-demo" class="wmd-spacer wmd-spacer2"></li><li title="有序列表 &lt;ol&gt; Ctrl+O" id="wmd-olist-button-demo" style="left: 200px;" class="wmd-button wmd-olist-button"><span style="background-position: -120px 0px;"></span></li><li title="普通列表 &lt;ul&gt; Ctrl+U" id="wmd-ulist-button-demo" style="left: 225px;" class="wmd-button wmd-ulist-button"><span style="background-position: -140px 0px;"></span></li><li title="标题 &lt;h1&gt;/&lt;h2&gt; Ctrl+H" id="wmd-heading-button-demo" style="left: 250px;" class="wmd-button wmd-heading-button"><span style="background-position: -160px 0px;"></span></li><li title="分割线 &lt;hr&gt; Ctrl+R" id="wmd-hr-button-demo" style="left: 275px;" class="wmd-button wmd-hr-button"><span style="background-position: -180px 0px;"></span></li><li id="wmd-spacer3-demo" class="wmd-spacer wmd-spacer3"></li><li title="撤销 - Ctrl+Z" id="wmd-undo-button-demo" style="left: 325px;" class="wmd-button wmd-undo-button"><span style="background-position: -200px -20px;"></span></li><li title="重做 - Ctrl+Shift+Z" id="wmd-redo-button-demo" style="left: 350px;" class="wmd-button wmd-redo-button"><span style="background-position: -220px -20px;"></span></li><li id="wmd-spacer4-demo" class="wmd-spacer wmd-spacer4"></li><li title="Markdown 语法" style="left: 375px;" id="wmd-help-button-demo" class="wmd-button wmd-help-button"><span style="background-position: -300px 0px;"></span></li><li title="预览模式" id="wmd-previewmode-button-demo" style="left: 400px;" class="wmd-button wmd-previewmode-button"><span style="background-position: -360px 0px;"></span></li><li title="实时模式" id="wmd-livemode-button-demo" style="left: 425px;" class="wmd-button wmd-livemode-button"><span style="background-position: -340px 0px;"></span></li><li title="编辑模式" id="wmd-editmode-button-demo" style="left: 450px;" class="wmd-button wmd-editmode-button"><span style="background-position: -320px 0px;"></span></li><li id="wmd-spacer5-demo" class="wmd-spacer wmd-spacer5"></li><li title="全屏" id="wmd-fullscreen-button-demo" style="left: 500px;" class="wmd-button wmd-fullscreen-button"><span style="background-position: -240px 0px;"></span></li></ul></div><div class="wmd"><textarea class="wmd-input" id="wmd-input-demo"></textarea><div class="wmd-preview"><div class="wmd-preview-cont" id="wmd-preview-demo"></div></div></div><div class="mded-resize">调整高度</div></div>
			
				<div class="comt-ctrl">
					<div class="comt-tips"><input name="comment_post_ID" value="198" id="comment_post_ID" type="hidden">
<input name="comment_parent" id="comment_parent" value="0" type="hidden">
</div>
					<button type="submit" name="submit" id="submit" tabindex="5"><i class="fa fa-pencil" aria-hidden="true"></i> 分享笔记</button>
				</div>
			</div>
												<div class="comt-comterinfo" id="comment-author-info">
						<ul>
							<li class="form-inline"><label class="hide" for="author">昵称</label><input class="ipt" name="author" id="author" tabindex="2" placeholder="昵称" type="text"><span class="text-muted">昵称 (必填)</span></li>
							<li class="form-inline"><label class="hide" for="email">邮箱</label><input class="ipt" name="email" id="email" tabindex="3" placeholder="邮箱" type="text"><span class="text-muted">邮箱 (必填)</span></li>
							<li class="form-inline"><label class="hide" for="url">引用地址</label><input class="ipt" name="url" id="url" tabindex="4" placeholder="引用地址" type="text"><span class="text-muted">引用地址</span></li>
						</ul>
					</div>
									</div>

	</form>
	</div>
<script type="text/javascript">
$(function() {
	//初始化编辑器
	mded('mded');
	var dragging = false;
	var _height = '';
	if (window.addEventListener) {
		document.getElementsByClassName("mded-resize")[0].addEventListener("mousedown", function(e) {dragstart(e);});
		document.getElementsByClassName("mded-resize")[0].addEventListener("touchstart", function(e) {dragstart(e);});
		window.addEventListener("mousemove", function(e) {dragmove(e);});
		window.addEventListener("touchmove", function(e) {dragmove(e);});
		window.addEventListener("mouseup", dragend);
		window.addEventListener("touchend", dragend);
	}
	function dragstart(e) {
		e.preventDefault();
		dragging = true;
		var main = document.getElementById("wmd-input-demo");
	}
	function dragmove(e) {
		if(dragging) {
			_height =   e.pageY - $(".mded-resize").offset().top;
			if(_height>0) {
				_height = $("#wmd-input-demo").height() + _height
				$("#wmd-input-demo").css("height", _height+"px");
			}
		}
		
	}
	function dragend() {
		dragging = false;
	}
	// 提交笔记
	var commentform=$('#commentform');
	commentform.prepend('<div id="comment-status" ></div>');
	var statusdiv=$('#comment-status');
	
	commentform.submit(function(){
		var noteContent = $("#wmd-preview-demo").html();
		noteContent = noteContent.replace(/<pre><code>/,"<pre>");
		noteContent = noteContent.replace(/<\/code><\/pre>/,"</pre>");
		
		// 系列化表单数据
		var comment_parent = 0;
		var comment_post_ID =  198;
		var _wp_unfiltered_html_comment = $("#_wp_unfiltered_html_comment").val();
		var comment = noteContent;
		// var formdata=commentform.serialize() + "&comment=" + noteContent ;
		// 添加状态信息
		statusdiv.html('<p>Processing...</p>');
		// 获取表单提交地址
		var formurl=commentform.attr('action');
		// 异步提交
		$.ajax({
				type: 'post',
				url: formurl,
				dataType:'json',
				data: {"comment_parent":comment_parent,"comment_post_ID":comment_post_ID, "_wp_unfiltered_html_comment":_wp_unfiltered_html_comment,"comment":comment},
				error: function(XMLHttpRequest, textStatus, errorThrown){
				statusdiv.html('<p class="wdpajax-error" >数据不完整或表单提交太快了！</p>');
			},
			success: function(data, textStatus){
				if(data.errorno=="0")
					statusdiv.html('<p class="ajax-success" >笔记已提交审核，感谢分享笔记！</p>');
				else
					statusdiv.html('<p class="ajax-error" >'+data.msg+'</p>');
				commentform.find('textarea[name=comment]').val('');
			}
		});
		return false;

	});
	
});
</script>

<link rel="stylesheet" href="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/qa.css">
<link rel="stylesheet" href="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/mded.css">
<script src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/mded.js"></script>		<div class="sidebar-box ad-box ad-box-large">
		<div class="ad-336280" style="display: none;">
			
		</div>
		</div>
		
	</div>
</div>
	

<!-- 右边栏 -->
<div class="fivecol last right-column">
<!--
	<div class="tab tab-light-blue" style="text-align: center;">关注微信</div>
	<div class="sidebar-box">
		<a href="http://m.runoob.com/" target="_blank"> <img src="http://www.runoob.com/wp-content/themes/w3cschool.cc/assets/img/qrcode.jpg" alt="移动版"> </a>
		<div class="qqinfo">
		 <a target="_blank" href="http://jq.qq.com/?_wv=1027&k=dOwwKN" id="qqhref">
		<img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="菜鸟家族" title="菜鸟家族"></a>
		<span>(群号：<span id="qqid">365967760</span>)</span>
		</div>
		
	</div>
	-->
<style>
.sidebar-tree .double-li {
	width:300px;
}
.sidebar-tree .double-li li {
    width: 44%;
    line-height: 1.5em;
    border-bottom: 1px solid #ccc;
    float: left;
    display: inline;
}
</style>

	
		<div class="sidebar-box ad-box ad-box-large">
		<div class="sidebar-box advertise-here" style="margin: 0 auto;">
			<a href="javascript:void(0);" style="font-size: 16px; color:#64854c;font-weight:bold;"> <i class="fa fa-list" aria-hidden="true"></i>  分类导航</a>
		</div>
	<div class="sidebar-box sidebar-cate">
		
		<div class="sidebar-tree">
			<ul><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> HTML / CSS</a><ul class="double-li"><li><a title="HTML 教程" href="http://www.runoob.com/html/html-tutorial.html">HTML 教程</a></li><li><a title="HTML5 教程" href="http://www.runoob.com/html/html5-intro.html">HTML5 教程</a></li><li><a title="CSS 教程" href="http://www.runoob.com/css/css-tutorial.html">CSS 教程</a></li><li><a title="CSS3 教程" href="http://www.runoob.com/css3/css3-tutorial.html">CSS3 教程</a></li><li><a title="Bootstrap 教程" href="http://www.runoob.com/bootstrap/bootstrap-tutorial.html">Bootstrap 教程</a></li><li><a title="Foundation 教程" href="http://www.runoob.com/foundation/foundation-tutorial.html">Foundation 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> JavaScript</a><ul class="double-li"><li><a title="JavaScript 教程" href="http://www.runoob.com/js/js-tutorial.html">JavaScript 教程</a></li><li><a title="HTML DOM 教程" href="http://www.runoob.com/htmldom/htmldom-tutorial.html">HTML DOM 教程</a></li><li><a title="jQuery 教程" href="http://www.runoob.com/jquery/jquery-tutorial.html">jQuery 教程</a></li><li><a title="AngularJS 教程" href="http://www.runoob.com/angularjs/angularjs-tutorial.html">AngularJS 教程</a></li><li><a title="AngularJS2 教程" href="http://www.runoob.com/angularjs2/angularjs2-tutorial.html">AngularJS2 教程</a></li><li><a title="Vue.js 教程" href="http://www.runoob.com/vue2/vue-tutorial.html">Vue.js 教程</a></li><li><a title="React 教程" href="http://www.runoob.com/react/react-tutorial.html">React 教程</a></li><li><a title="jQuery UI 教程" href="http://www.runoob.com/jqueryui/jqueryui-tutorial.html">jQuery UI 教程</a></li><li><a title="jQuery EasyUI 教程" href="http://www.runoob.com/jeasyui/jqueryeasyui-tutorial.html">jQuery EasyUI 教程</a></li><li><a title="Node.js 教程" href="http://www.runoob.com/nodejs/nodejs-tutorial.html">Node.js 教程</a></li><li><a title="AJAX 教程" href="http://www.runoob.com/ajax/ajax-tutorial.html">AJAX 教程</a></li><li><a title="JSON 教程" href="http://www.runoob.com/json/json-tutorial.html">JSON 教程</a></li><li><a title="Highcharts 教程" href="http://www.runoob.com/highcharts/highcharts-tutorial.html">Highcharts 教程</a></li><li><a title="Google 地图 教程" href="http://www.runoob.com/googleapi/google-maps-basic.html">Google 地图 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 服务端</a><ul class="double-li"><li><a title="PHP 教程" href="http://www.runoob.com/php/php-tutorial.html">PHP 教程</a></li><li><a title="Python 教程" href="http://www.runoob.com/python/python-tutorial.html">Python 教程</a></li><li><a title="Python3 教程" href="http://www.runoob.com/python3/python3-tutorial.html">Python3 教程</a></li><li><a title="Django 教程" href="http://www.runoob.com/django/django-tutorial.html">Django 教程</a></li><li><a title="Linux 教程" href="http://www.runoob.com/linux/linux-tutorial.html">Linux 教程</a></li><li><a title="Docker 教程" href="http://www.runoob.com/docker/docker-tutorial.html">Docker 教程</a></li><li><a title="Ruby 教程" href="http://www.runoob.com/ruby/ruby-tutorial.html">Ruby 教程</a></li><li><a title="Java 教程" href="http://www.runoob.com/java/java-tutorial.html">Java 教程</a></li><li><a title="C 教程" href="http://www.runoob.com/c/c-tutorial.html">C 教程</a></li><li><a title="C++ 教程" href="http://www.runoob.com/cplusplus/cpp-tutorial.html">C++ 教程</a></li><li><a title="Perl 教程" href="http://www.runoob.com/perl/perl-tutorial.html">Perl 教程</a></li><li><a title="Servlet 教程" href="http://www.runoob.com/servlet/servlet-tutorial.html">Servlet 教程</a></li><li><a title="JSP 教程" href="http://www.runoob.com/jsp/jsp-tutorial.html">JSP 教程</a></li><li><a title="Lua 教程" href="http://www.runoob.com/lua/lua-tutorial.html">Lua 教程</a></li><li><a title="Scala 教程" href="http://www.runoob.com/scala/scala-tutorial.html">Scala 教程</a></li><li><a title="Go 教程" href="http://www.runoob.com/go/go-tutorial.html">Go 教程</a></li><li><a title="设计模式" href="http://www.runoob.com/design-pattern/design-pattern-tutorial.html">设计模式</a></li><li><a title="正则表达式" href="http://www.runoob.com/regexp/regexp-tutorial.html">正则表达式</a></li><li><a title="ASP 教程" href="http://www.runoob.com/asp/asp-tutorial.html">ASP 教程</a></li><li><a title="AppML 教程" href="http://www.runoob.com/appml/appml-tutorial.html">AppML 教程</a></li><li><a title="VBScript 教程" href="http://www.runoob.com/vbscript/vbscript-tutorial.html">VBScript 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 数据库</a><ul class="double-li"><li><a title="SQL 教程" href="http://www.runoob.com/sql/sql-tutorial.html">SQL 教程</a></li><li><a title="Mysql 教程" href="http://www.runoob.com/mysql/mysql-tutorial.html">Mysql 教程</a></li><li><a title="SQLite 教程" href="http://www.runoob.com/sqlite/sqlite-tutorial.html">SQLite 教程</a></li><li><a title="MongoDB 教程" href="http://www.runoob.com/mongodb/mongodb-tutorial.html">MongoDB 教程</a></li><li><a title="Redis 教程" href="http://www.runoob.com/redis/redis-tutorial.html">Redis 教程</a></li><li><a title="Memcached 教程" href="http://www.runoob.com/Memcached/Memcached-tutorial.html">Memcached 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 移动端</a><ul class="double-li"><li><a title="Android 教程" href="http://www.runoob.com/w3cnote/android-tutorial-intro.html">Android 教程</a></li><li><a title="Swift 教程" href="http://www.runoob.com/swift/swift-tutorial.html">Swift 教程</a></li><li><a title="jQuery Mobile 教程" href="http://www.runoob.com/jquerymobile/jquerymobile-tutorial.html">jQuery Mobile 教程</a></li><li><a title="ionic 教程" href="http://www.runoob.com/ionic/ionic-tutorial.html">ionic 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> XML 教程</a><ul class="double-li"><li><a title="XML 教程" href="http://www.runoob.com/xml/xml-tutorial.html">XML 教程</a></li><li><a title="DTD 教程" href="http://www.runoob.com/dtd/dtd-tutorial.html">DTD 教程</a></li><li><a title="XML DOM 教程" href="http://www.runoob.com/dom/dom-tutorial.html">XML DOM 教程</a></li><li><a title="XSLT 教程" href="http://www.runoob.com/xsl/xsl-tutorial.html">XSLT 教程</a></li><li><a title="XPath 教程" href="http://www.runoob.com/xpath/xpath-tutorial.html">XPath 教程</a></li><li><a title="XQuery 教程" href="http://www.runoob.com/xquery/xquery-tutorial.html">XQuery 教程</a></li><li><a title="XLink 教程" href="http://www.runoob.com/xlink/xlink-tutorial.html">XLink 教程</a></li><li><a title="XPointer 教程" href="http://www.runoob.com/xlink/xlink-tutorial.html">XPointer 教程</a></li><li><a title="XML Schema 教程" href="http://www.runoob.com/schema/schema-tutorial.html">XML Schema 教程</a></li><li><a title="XSL-FO 教程" href="http://www.runoob.com/xslfo/xslfo-tutorial.html">XSL-FO 教程</a></li><li><a title="SVG 教程" href="http://www.runoob.com/svg/svg-tutorial.html">SVG 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> ASP.NET</a><ul class="double-li"><li><a title="ASP.NET 教程" href="http://www.runoob.com/aspnet/aspnet-tutorial.html">ASP.NET 教程</a></li><li><a title="C# 教程" href="http://www.runoob.com/csharp/csharp-tutorial.html">C# 教程</a></li><li><a title="Web Pages 教程" href="http://www.runoob.com/aspnet/webpages-intro.html">Web Pages 教程</a></li><li><a title="Razor 教程" href="http://www.runoob.com/aspnet/razor-intro.html">Razor 教程</a></li><li><a title="MVC 教程" href="http://www.runoob.com/aspnet/mvc-intro.html">MVC 教程</a></li><li><a title="Web Forms 教程" href="http://www.runoob.com/aspnet/aspnet-intro.html">Web Forms 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> Web Service</a><ul class="double-li"><li><a title="Web Service 教程" href="http://www.runoob.com/webservices/webservices-tutorial.html">Web Service 教程</a></li><li><a title="WSDL 教程" href="http://www.runoob.com/wsdl/wsdl-tutorial.html">WSDL 教程</a></li><li><a title="SOAP 教程" href="http://www.runoob.com/soap/soap-tutorial.html">SOAP 教程</a></li><li><a title="RSS 教程" href="http://www.runoob.com/rss/rss-tutorial.html">RSS 教程</a></li><li><a title="RDF 教程" href="http://www.runoob.com/rdf/rdf-tutorial.html">RDF 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 开发工具</a><ul class="double-li"><li><a title="Eclipse 教程" href="http://www.runoob.com/eclipse/eclipse-tutorial.html">Eclipse 教程</a></li><li><a title="Git 教程" href="http://www.runoob.com/git/git-tutorial.html">Git 教程</a></li><li><a title="Firebug 教程" href="http://www.runoob.com/firebug/firebug-tutorial.html">Firebug 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 网站建设</a><ul class="double-li"><li><a title="HTTP 教程" href="http://www.runoob.com/http/http-tutorial.html">HTTP 教程</a></li><li><a title="网站建设指南" href="http://www.runoob.com/web/web-buildingprimer.html">网站建设指南</a></li><li><a title="浏览器信息" href="http://www.runoob.com/browsers/browser-information.html">浏览器信息</a></li><li><a title="网站主机教程" href="http://www.runoob.com/hosting/hosting-tutorial.html">网站主机教程</a></li><li><a title="TCP/IP 教程" href="http://www.runoob.com/tcpip/tcpip-tutorial.html">TCP/IP 教程</a></li><li><a title="W3C 教程" href="http://www.runoob.com/w3c/w3c-tutorial.html">W3C 教程</a></li><li><a title="网站品质" href="http://www.runoob.com/quality/quality-tutorial.html">网站品质</a></li></ul></li></ul>			</div>
	
	</div>
	</div>
	<br>
	
	<div class="sidebar-box ad-box ad-box-large">
		<div class="sidebar-box advertise-here">
			<a href="javascript:void(0);">Advertisement</a>
		</div>
		<div class="ad-600160">
		<script async="" src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/adsbygoogle.js"></script>
		<!-- 侧栏1 -->
		<ins data-adsbygoogle-status="done" class="adsbygoogle" style="display:inline-block;width:160px;height:600px" data-ad-client="ca-pub-5751451760833794" data-ad-slot="4106274865"><ins id="aswift_1_expand" style="display:inline-table;border:none;height:600px;margin:0;padding:0;position:relative;visibility:visible;width:160px;background-color:transparent"><ins id="aswift_1_anchor" style="display:block;border:none;height:600px;margin:0;padding:0;position:relative;visibility:visible;width:160px;background-color:transparent"><iframe marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_1" name="aswift_1" style="left:0;position:absolute;top:0;" frameborder="0" height="600" width="160"></iframe></ins></ins></ins>
		<script>
		(adsbygoogle = window.adsbygoogle || []).push({});
		</script>
		</div>
	</div>
</div></div>

</div>

<script>
var aid = 198;
var uid = 0;
var url = '/wp-content/themes/runoob/option/user/userinfo.php';


$(function() {
	$.post( url, {aid:aid, action:"collarticle", opt:'init'}, function( data ) {
  		if(data.error==0) {
  			$("#content").find("h1:first").append(data.msg);
  			$(".comment-signarea").hide();
  			$("#commentform").show();
  			$("#comment-author-info").hide();
  			$(".comt-title p:first").html(data.username);
  		} else {
  			$(".comment-signarea").show();
  			$("#commentform").hide();
  		}
	},'json');
})

function coll() {
	$.post( url, {aid:aid, action:"collarticle", opt:'add'},function( data ) {
  		if(data.error==0) {
	  		$("#content").find("h1:first").find("a").attr("href","javascript:void(0);");
	  		$("#content").find("h1:first").find("img").attr("src","http://www.runoob.com/wp-content/themes/runoob/assets/img/coll2.png").css({width:32+"px",height:32+"px"});
  		}
  		alert(data.msg);
	 },'json');
}

</script>


<!-- 反馈对话框开始 -->
<div id="htmlfeedback-container" class="unselectable">
    <div id="htmlfeedback-more">
    	 <div id="htmlfeedback-info" style="display: inline-block;">
        <i class="fa fa-comments-o" aria-hidden="true"></i> 我的建议
        </div>

        <div id="htmlfeedback-close" style="display: none;">X</div>
    </div>

	<div style="display: none;" id="htmlfeedback-container-more">	    
		<h3>反馈内容<span style="color:red;display:inline-block;">（*必填）</span></h3>
	
		<p>
			  <textarea id="htmlfeedback-input-description" name="description" placeholder="欢迎提出您在使用过程中遇到的问题或宝贵建议（400字以内），感谢您对菜鸟教程的支持。"></textarea> 
			   
			</p>
				<form id="htmlfeedback-form">
			<p style="font-size:14px;font-weight: bold;margin-top: 10px;;"> <input id="is-screenshots" type="checkbox">  是否截图</p>
			<div id="screenshots" style="display: none;">
		        <h3 style="margin-top: 10px;">截图标记颜色</h3>
		        <p>
		           
		        	<input name="marker" value="rgba(255,255,255,0)" checked="checked" type="radio"> 白色
		        	<input name="marker" value="rgb(0,0,0)" type="radio"> 黑色
		        	<input name="marker" value="rgba(255,0,0,0.5)" type="radio"> 红色
		        	<input name="marker" value="rgba(0,255,0,0.5)" type="radio"> 绿色
		        	<input name="marker" value="rgba(0,0,255,0.5)" type="radio"> 蓝色
		        </p>
			</div>

			<h3>
			联系方式(邮箱)
			</h3>
			<input name="fb_email" class="fb-email" maxlength="100" placeholder="请留下您的联系方式，以便我们及时回复您。" id="feedback_email" type="text">
			<p>
				<input id="htmlfeedback-submit" value="提交反馈" type="submit">
							
			</p>
			<br>
			<hr>
			<p style="margin: 5px;">
				<strong>联系邮箱：<a href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&amp;email=ssbDyoOAgfLU3crf09venNHd3w" target="_balnk">429240967@qq.com</a></strong>
							
			</p>
			<p style="margin: 5px;">
				<strong>投稿页面：<a href="http://www.runoob.com/tougao" target="_balnk">http://www.runoob.com/tougao</a></strong>
							
			</p>
		</form>
	</div>	
</div>
<!-- 反馈对话框结束 -->

<script type="text/javascript" src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/jquery_002.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	// 初始化
	$("body").htmlfeedback({
		onShow: function() {
			$("#htmlfeedback-close").show();
			$("#htmlfeedback-container-more").show("fast").addClass("expanded");	
			$("#htmlfeedback-info").html('<i class="fa fa-comments-o" aria-hidden="true"></i> 我的建议');
			$("#htmlfeedback-more").css({"background-color":"#96b97d"});
			$("#htmlfeedback-submit").prop('disabled',false);
		},
		onHide: function() {
			$("#htmlfeedback-close").hide();
			$("#htmlfeedback-container-more").hide("fast").removeClass("expanded");	
		},
		onPreRender: function() {
		    $("#htmlfeedback-container").hide();
	    },
	    onPostRender: function(canvas) {
		    $("#htmlfeedback-container").show();
	    }
	});
	
	// 显示隐藏反馈对话框
	$("#htmlfeedback-more").click(function() {
		$("body").htmlfeedback("toggle");
		
	});
	
	// 重置反馈
	$("#htmlfeedback-reset").click(function() {
		$("body").htmlfeedback("reset");
	});
	$("#is-screenshots").change(function(e) {
		if($('#is-screenshots').prop('checked')) {
			$('#screenshots').show();
		} else {
			$('#screenshots').hide();
		}
	});
	// 上传到服务器
	$("#htmlfeedback-form").submit(function(e) {
		e.preventDefault();
    	if($('#is-screenshots').prop('checked')) {
			$("#htmlfeedback-info").html('<i class="fa fa-spinner fa-spin fa-1x fa-fw"></i> 反馈信息提交中……');
			$("#htmlfeedback-more").css({"background-color":"#ffa52e"});
			$("body").htmlfeedback("upload", {
				data: {
					"description": $("#htmlfeedback-input-description").val(),
					"post_id" : 198,
					"fb_email" : $("#feedback_email").val()
				},
				url: "/feedback/feedback.php",
				dataType: "json",
				success:function(result){
					if(result.flag==0) {
						$("#htmlfeedback-info").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> 抱歉，提交失败：' + result.msg);
					} else {
						$("#htmlfeedback-info").html("您的意见我们已经收到了，谢谢！");
						$("body").htmlfeedback("hide");
					}
				}
			});
		} else {
			$("#htmlfeedback-more").css({"background-color":"#ffa52e"});
			$.post(
				"/feedback/feedback.php",
				{"description": $("#htmlfeedback-input-description").val(),"post_id" : 198,"fb_email" : $("#feedback_email").val()},
				function(result){
					if(result.flag==0) {
						$("#htmlfeedback-info").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> 抱歉，提交失败：' + result.msg);
					} else {
						$("#htmlfeedback-submit").prop('disabled',true);
						$("#htmlfeedback-info").html("您的意见我们已经收到了，谢谢！");
						$("body").htmlfeedback("hide");
					}
				},
				"json"
			)
		}
	});
	
	// 背景颜色设置
	$("input[name='marker']").change(function() {
		$("body").htmlfeedback('color', $("input[name='marker']:checked").val());	
	});
});
</script>

<!-- 底部 -->


<div id="footer" class="mar-t50">
   <div class="runoob-block">
    <div class="runoob cf">
     <dl>
      <dt>
       在线实例
      </dt>
      <dd>
       ·<a target="_blank" href="http://www.runoob.com/html/html-examples.html">HTML 实例</a>
      </dd>
      <dd>
       ·<a target="_blank" href="http://www.runoob.com/css/css-examples.html">CSS 实例</a>
      </dd>
      <dd>
       ·<a target="_blank" href="http://www.runoob.com/js/js-examples.html">JavaScript 实例</a>
      </dd>
      <dd>
       ·<a target="_blank" href="http://www.runoob.com/ajx/ajax-examples.html">Ajax 实例</a>
      </dd>
       <dd>
       ·<a target="_blank" href="http://www.runoob.com/jquery/jquery-examples.html">jQuery 实例</a>
      </dd>
      <dd>
       ·<a target="_blank" href="http://www.runoob.com/xml/xml-examples.html">XML 实例</a>
      </dd>
      <dd>
       ·<a target="_blank" href="http://www.runoob.com/java/java-examples.html">Java 实例</a>
      </dd>
     
     </dl>
     <dl>
      <dt>
      字符集&amp;工具
      </dt>
      <dd>
       · <a target="_blank" href="http://www.runoob.com/charsets/html-charsets.html">HTML 字符集设置</a>
      </dd>
      <dd>
       · <a target="_blank" href="http://www.runoob.com/tags/html-ascii.html">HTML ASCII 字符集</a>
      </dd>
     <dd>
       · <a target="_blank" href="http://www.runoob.com/tags/ref-entities.html">HTML ISO-8859-1</a>
      </dd> 
      <dd>
       · <a target="_blank" href="http://www.runoob.com/tags/html-symbols.html">HTML 实体符号</a>
      </dd>
      <dd>
       · <a target="_blank" href="http://www.runoob.com/tags/html-colorpicker.html">HTML 拾色器</a>
      </dd>
      <dd>
       · <a target="_blank" href="http://c.runoob.com/front-end/53">JSON 格式化工具</a>
      </dd>
     </dl>
     <dl>
      <dt>
       最新更新
      </dt>
                   <dd>
       ·
      <a href="http://www.runoob.com/w3cnote/boss-can-not-understand-programmer-pain.html" title="程序员的痛，老板岂能理解？">程序员的痛，老...</a>
      </dd>
              <dd>
       ·
      <a href="http://www.runoob.com/json/json-stringify.html" title="JSON.stringify()">JSON.stringify()</a>
      </dd>
              <dd>
       ·
      <a href="http://www.runoob.com/json/json-parse.html" title="JSON.parse()">JSON.parse()</a>
      </dd>
              <dd>
       ·
      <a href="http://www.runoob.com/w3cnote/programmer-career-direction.html" title="谈谈程序猿的职业方向">谈谈程序猿的职...</a>
      </dd>
              <dd>
       ·
      <a href="http://www.runoob.com/json/js-json-arrays.html" title="JSON 数组">JSON 数组</a>
      </dd>
              <dd>
       ·
      <a href="http://www.runoob.com/json/js-json-objects.html" title="JSON 对象">JSON 对象</a>
      </dd>
              <dd>
       ·
      <a href="http://www.runoob.com/w3cnote/programmer-song.html" title="程序员之歌：一人我编程累">程序员之歌：一...</a>
      </dd>
             </dl>
     <dl>
      <dt>
       站点信息
      </dt>
      <dd>
       ·
       <a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&amp;email=ssbDyoOAgfLU3crf09venNHd3w" rel="external nofollow">意见反馈</a>
      </dd>
      <dd>
       ·
      <a target="_blank" href="http://www.runoob.com/disclaimer">免责声明</a>
       </dd>
      <dd>
       ·
       <a target="_blank" href="http://www.runoob.com/aboutus">关于我们</a>
       </dd>
      <dd>
       ·
      <a target="_blank" href="http://www.runoob.com/archives">文章归档</a>
      </dd>
      
     </dl>
     <div class="search-share">
      <div class="app-download">
        <div>
         <strong>关注微信</strong>
        </div>
      </div>
      <div class="share">
            <img src="" height="128" width="128">
       </div>
     </div>
    </div>
   </div>
   <div class="w-1000 copyright">
     Copyright © 2013-2017    <strong><a href="http://www.runoob.com/" target="_blank">菜鸟教程</a></strong>&nbsp;
    <strong><a href="http://www.runoob.com/" target="_blank">runoob.com</a></strong> All Rights Reserved. 备案号：闽ICP备15012807号-1
   </div>
  </div>
  <div class="fixed-btn">
    <a class="go-top" href="javascript:void(0)" title="返回顶部"> <i class="fa fa-angle-up"></i></a>
    <a class="qrcode" href="javascript:void(0)" title="关注我们"><i class="fa fa-qrcode"></i></a>
    <a class="writer" target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&amp;email=ssbDyoOAgfLU3crf09venNHd3w" style="font-size: 12px;" title="Bug 反馈"><i class="fa fa-envelope-o" style="font-size: 20px;"></i></a>
    <!-- qrcode modal -->
    <div id="bottom-qrcode" class="modal panel-modal hide fade in">
      <h4>微信关注</h4>
      <div class="panel-body"><img alt="微信关注" src="" height="128" width="128"></div> 
    </div>
  </div>
<div style="display:none;">
  <script src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/z_stat.php" language="JavaScript"></script><script src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/core.php" charset="utf-8" type="text/javascript"></script><a href="http://www.cnzz.com/stat/website.php?web_id=5578006" target="_blank" title="站长统计">站长统计</a>
  <script>
  var _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "//hm.baidu.com/hm.js?8e2a116daf0104a78d601f40a45c75b4";
    var s = document.getElementsByTagName("script")[0]; 
    s.parentNode.insertBefore(hm, s);
  })();
  </script>
</div>
<script>
window.jsui={
    www: '//wwww.runoob.com',
    uri: '//www.runoob.com/wp-content/themes/runoob'
};
</script>
<style>
ol,ul{list-style:none}.cd-switcher a{text-decoration:none;outline:0}.cd-switcher a:hover{text-decoration:underline}a:focus{outline:0;-moz-outline:0}.main_nav{width:300px;height:60px;margin:60px auto 10px auto}.main_nav li{float:left;width:60px;margin-right:10px;font-size:16px;padding:.6em 1em;border-radius:3em;background:#2f889a;text-align:center}.main_nav li a{color:#fff}.errtip{background-color:#fceaea;color:#db5353;padding:8px 15px;font-size:14px;border:1px solid #fc9797;border-radius:5px}.cd-user-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(52,54,66,0.9);z-index:3;overflow-y:auto;cursor:pointer;visibility:hidden;opacity:0;-webkit-transition:opacity .3s 0,visibility 0 .3s;-moz-transition:opacity .3s 0,visibility 0 .3s;transition:opacity .3s 0,visibility 0 .3s}.cd-user-modal.is-visible{visibility:visible;opacity:1;-webkit-transition:opacity .3s 0,visibility 0 0;-moz-transition:opacity .3s 0,visibility 0 0;transition:opacity .3s 0,visibility 0 0}.cd-user-modal.is-visible .cd-user-modal-container{-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}.cd-user-modal-container{position:relative;width:90%;max-width:500px;background:#FFF;margin:3em auto 4em;cursor:auto;border-radius:.25em;-webkit-transform:translateY(-30px);-moz-transform:translateY(-30px);-ms-transform:translateY(-30px);-o-transform:translateY(-30px);transform:translateY(-30px);-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;transition-property:transform;-webkit-transition-duration:.3s;-moz-transition-duration:.3s;transition-duration:.3s}.cd-user-modal-container .cd-switcher:after{content:"";display:table;clear:both}.cd-user-modal-container .cd-switcher li{width:50%;float:left;text-align:center}.cd-user-modal-container .cd-switcher li:first-child a{border-radius:.25em 0 0 0}.cd-user-modal-container .cd-switcher li:last-child a{border-radius:0 .25em 0 0}.cd-user-modal-container .cd-switcher a{font-size:1.2em;font-weight:bold;display:block;width:100%;height:50px;line-height:50px;background:#e8f1e2;color:#96b880}.cd-user-modal-container .cd-switcher a.selected{background:#FFF;color:#505260}@media only screen and (min-width:600px){.cd-user-modal-container{margin:4em auto}.cd-user-modal-container .cd-switcher a{height:70px;line-height:70px}}.cd-form{padding:1.4em}.cd-form .fieldset{position:relative;margin:1.4em 0}.cd-form .fieldset:first-child{margin-top:0}.cd-form .fieldset:last-child{margin-bottom:0}.cd-form label{font-size:16px;font-size:.875rem}.cd-form label.image-replace{display:inline-block;position:absolute;left:15px;top:50%;bottom:auto;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);height:20px;width:20px;overflow:hidden;text-indent:100%;white-space:nowrap;color:transparent;text-shadow:none;background-repeat:no-repeat;background-position:50% 0}.cd-form label.cd-username{background-image:url("/wp-content/themes/runoob/assets/img/cd-icon-username.svg")}.cd-form label.cd-email{background-image:url("/wp-content/themes/runoob/assets/img/cd-icon-email.svg")}.cd-form label.cd-password{background-image:url("/wp-content/themes/runoob/assets/img/cd-icon-password.svg")}.cd-form input{margin:0;padding:0;border-radius:.25em}.cd-form input.full-width{width:80%}.cd-form input.full-width2{width:94%}.cd-form input.has-padding{padding:12px 20px 12px 50px}.cd-form input.has-border{border:1px solid #d2d8d8;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;-o-appearance:none;appearance:none}.cd-form input.has-border:focus{border-color:#98b880;box-shadow:0 0 5px rgba(52,54,66,0.1);outline:0}.cd-form input.has-error{border:1px solid #d76666}.cd-form input[type=password]{padding-right:65px}.cd-form input[type=submit]{padding:16px 0;cursor:pointer;background:#96b97d;color:#FFF;font-weight:bold;border:0;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;-o-appearance:none;appearance:none;font-size:1.2em;font-weight:bold}.no-touch .cd-form input[type=submit]:hover,.no-touch .cd-form input[type=submit]:focus{background:#3599ae;outline:0}@media only screen and (min-width:600px){.cd-form{padding:2em}.cd-form .fieldset{margin:2em 0}.cd-form .fieldset:first-child{margin-top:0}.cd-form .fieldset:last-child{margin-bottom:0}.cd-form input.has-padding{padding:16px 20px 16px 50px}.cd-form input[type=submit]{padding:16px 0}}.cd-close-form{display:block;position:absolute;width:40px;height:40px;right:0;top:-40px;background:url("/wp-content/themes/runoob/assets/img/cd-icon-close.svg") no-repeat center center;text-indent:100%;white-space:nowrap;overflow:hidden}@media only screen and (min-width:1170px){}#cd-login,#cd-signup,#cd-reset-password{display:none}#cd-login.is-selected,#cd-signup.is-selected,#cd-reset-password.is-selected{display:block}
</style>
<div class="cd-user-modal"> 
	<div class="cd-user-modal-container">
		<ul class="cd-switcher">
			<li><a href="javascript:;">用户登录</a></li>
			<li><a href="javascript:;">注册新用户</a></li>
		</ul>

		<div id="cd-login"> <!-- 登录表单 -->
			<div class="cd-form">
				<p class="fieldset">
					<label class="image-replace cd-username" for="signin-username">用户名</label>
					<input class="full-width has-padding has-border" id="signin-username" name="username" placeholder="输入用户名" type="text">
				</p>

				<p class="fieldset">
					<label class="image-replace cd-password" for="signin-password">密码</label>
					<input class="full-width has-padding has-border" id="signin-password" name="password" placeholder="输入密码" type="password">
				</p>
				
				<p class="fieldset">
					<input id="remember-me" checked="checked" type="checkbox">
					<label for="remember-me">记住登录状态</label>
          <a href="http://www.runoob.com/reset-password" style="float: right;padding-right: 20px;" target="_blank">忘记密码？</a>
				</p>
 				<input name="action" value="signin" type="hidden">
				<p class="fieldset">
					<input class="full-width2" value="登 录" type="submit">
				</p>
        <div class="err-msg"></div>
			</div>
		</div>

		<div id="cd-signup"> <!-- 注册表单 -->
			<div class="cd-form">
				<p class="fieldset">
					<label class="image-replace cd-password" for="verifycode">邀请码</label>
					<input class="full-width has-padding has-border" id="signup-verifycode" name="verifycode" placeholder="输入邀请码" type="text">
				</p>
				<p class="fieldset">
					<label class="image-replace cd-username" for="signup-username">用户名</label>
					<input class="full-width has-padding has-border" id="signup-username" name="name" placeholder="输入用户名" type="text">
				</p>

				<p class="fieldset">
					<label class="image-replace cd-email" for="signup-email">邮箱</label>
					<input class="full-width has-padding has-border" name="email" id="signup-email" placeholder="输入mail" type="email">
				</p>

				<p class="fieldset">
					<label class="image-replace cd-password" for="signup-password">密码</label>
					<input class="full-width has-padding has-border" id="signup-password" name="password" placeholder="输入密码" type="password">
				</p>
				<p class="fieldset">
					<label class="image-replace cd-password" for="signup-password">重复输入密码</label>
					<input class="full-width has-padding has-border" id="signup-password" name="password2" placeholder="重复输入密码" type="password">
				</p>
				
				<!-- 
				<p class="fieldset">
					<input type="checkbox" id="accept-terms">
					<label for="accept-terms">我已阅读并同意 <a href="javascript:;">用户协议</a></label>
				</p>
				 -->
				 
				 <input name="action" value="signup" type="hidden">
				<p class="fieldset">
					<input class="full-width2" value="注册新用户" type="submit">
				</p>
				<p class="fieldset">
				  <a href="http://www.runoob.com/w3cnote/runoob-user-test-intro.html" target="_blank">如何获取邀请码？</a>
				  </p>
				<div class="err-msg"></div>
			</div>

		</div>

		<a href="javascript:;" class="cd-close-form">关闭</a>
	</div>
</div> 
<script src="CSS%20%E6%95%99%E7%A8%8B%20%7C%20%E8%8F%9C%E9%B8%9F%E6%95%99%E7%A8%8B_files/main.js"></script>
 

<canvas height="2461" width="1451" style="position: absolute; top: 0px; left: 0px; margin: 0px; z-index: 4900; -moz-user-select: none; display: none;"></canvas><div style="position: absolute; top: 0px; left: 0px; margin: 0px; z-index: 5000; background-color: transparent; -moz-user-select: none; display: none; width: 1451px; height: 2461px;"></div></body></html>